﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="loginTitle" ContentPlaceHolderID="TitleContent" runat="server">
	Log On
</asp:Content>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
	<% using (Html.BeginForm())
	{ %>
	<div class="pagetitle">
		<h1>
			Log On</h1>
	</div>
	<div class="pagecontent">
		<p>
			Please enter your username and password.
			<%= Html.ActionLink("Register", "Register") %>
			if you don't have an account.
		</p>
		<%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>
		<div>
			<fieldset>
				<legend>Account Information</legend>
				<p>
					<label for="username">
						Username:</label>
					<%= Html.TextBox("username") %>
					<%= Html.ValidationMessage("username") %>
				</p>
				<p>
					<label for="password">
						Password:</label>
					<%= Html.Password("password") %>
					<%= Html.ValidationMessage("password") %>
				</p>
				<p>
					<%= Html.CheckBox("rememberMe") %>
					<label class="inline" for="rememberMe">
						Remember me?</label>
				</p>
			</fieldset>
		</div>
	</div>
	<div class="pageactions">
		<p>
			<input type="submit" value="Log On" />
		</p>
	</div>
	<% } %>
</asp:Content>
